package com.nineclock.approve;

import com.nineclock.approve.dto.ApproveDefinitionResultDto;
import com.nineclock.approve.dto.ApproveDefinitionSaveDto;
import com.nineclock.approve.dto.ApproveGroupDefinitionDto;
import com.nineclock.common.entity.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import java.util.List;

@Api(value = "审批流程管理", tags = "审批中心")
public interface ApproveDefinitionControllerApi {
    @ApiOperation(value = "流程定义: 获取序列")
    public Result<String> seq();

    @ApiOperation(value = "查询流程定义列表")
    public Result<List<ApproveGroupDefinitionDto>> queryApproveGroupDefinition();

    @ApiOperation(value = "流程定义: 新增/修改")
    public Result saveApproveDefinition(ApproveDefinitionSaveDto approveDefinitionSaveDto);

    @ApiOperation(value = "流程定义: 根据ID查询")
    public Result<ApproveDefinitionResultDto> queryById(String id);
}